// 作用域是在编译时指定的，this是在运行时绑定的
// 全局作用域
const obj = {
  setup() {
    const router = useGod()
    console.log(router)
    const count = 1
    console.log(count)
  },
}
const bar = (e) => {
  const useGod = () => '我不掷骰子'
  const setup = e.setup
  const _setup = function (...arg) {
    let name = '张三'
    console.log(name)
    return {
      ...setup(...arg),
      name,
    }
  }
  e.setup = _setup
}
bar(obj)
// const useGod = () => '我不掷骰子'
obj.setup()
